<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>WB32L003 Standard Peripherals Firmware Library: PWR_Private_Functions</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">WB32L003 Standard Peripherals Firmware Library
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">PWR_Private_Functions<div class="ingroups"><a class="el" href="group___w_b32_l003___std_periph___driver.html">WB32L003_StdPeriph_Driver</a> &raquo; <a class="el" href="group___p_w_r.html">PWR</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga13fe554295a807e058ada5ecbc213102"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_w_r___private___functions.html#ga13fe554295a807e058ada5ecbc213102">PWR_EnterSLEEPMode</a> (uint8_t SLEEPEntry)</td></tr>
<tr class="memdesc:ga13fe554295a807e058ada5ecbc213102"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enters Sleep mode.  <a href="#ga13fe554295a807e058ada5ecbc213102">More...</a><br /></td></tr>
<tr class="separator:ga13fe554295a807e058ada5ecbc213102"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae91b808c1d300d9c9abc2334ffe7ec92"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_w_r___private___functions.html#gae91b808c1d300d9c9abc2334ffe7ec92">PWR_EnterDEEPSLEEPMode</a> (void)</td></tr>
<tr class="memdesc:gae91b808c1d300d9c9abc2334ffe7ec92"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enters Deep Sleep mode.  <a href="#gae91b808c1d300d9c9abc2334ffe7ec92">More...</a><br /></td></tr>
<tr class="separator:gae91b808c1d300d9c9abc2334ffe7ec92"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga614e9a0c9e603c88fa1a1cc1503b4267"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_w_r___private___functions.html#ga614e9a0c9e603c88fa1a1cc1503b4267">PWR_EnableSleepOnExit</a> (void)</td></tr>
<tr class="memdesc:ga614e9a0c9e603c88fa1a1cc1503b4267"><td class="mdescLeft">&#160;</td><td class="mdescRight">Indicates Sleep-On-Exit when returning from Handler mode to Thread mode.  <a href="#ga614e9a0c9e603c88fa1a1cc1503b4267">More...</a><br /></td></tr>
<tr class="separator:ga614e9a0c9e603c88fa1a1cc1503b4267"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gadf9d3e5ac0108e29ab88766ace65f43a"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_w_r___private___functions.html#gadf9d3e5ac0108e29ab88766ace65f43a">PWR_DisableSleepOnExit</a> (void)</td></tr>
<tr class="memdesc:gadf9d3e5ac0108e29ab88766ace65f43a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables Sleep-On-Exit feature when returning from Handler mode to Thread mode.  <a href="#gadf9d3e5ac0108e29ab88766ace65f43a">More...</a><br /></td></tr>
<tr class="separator:gadf9d3e5ac0108e29ab88766ace65f43a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga2babd7229a89f9df0aa725dbdd8a92b4"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_w_r___private___functions.html#ga2babd7229a89f9df0aa725dbdd8a92b4">PWR_EnableSEVOnPend</a> (void)</td></tr>
<tr class="memdesc:ga2babd7229a89f9df0aa725dbdd8a92b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Enables CORTEX M0+ SEVONPEND bit.  <a href="#ga2babd7229a89f9df0aa725dbdd8a92b4">More...</a><br /></td></tr>
<tr class="separator:ga2babd7229a89f9df0aa725dbdd8a92b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga998eda017f94fcc7474c0cf6ebec6465"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___p_w_r___private___functions.html#ga998eda017f94fcc7474c0cf6ebec6465">PWR_DisableSEVOnPend</a> (void)</td></tr>
<tr class="memdesc:ga998eda017f94fcc7474c0cf6ebec6465"><td class="mdescLeft">&#160;</td><td class="mdescRight">Disables CORTEX M0+ SEVONPEND bit.  <a href="#ga998eda017f94fcc7474c0cf6ebec6465">More...</a><br /></td></tr>
<tr class="separator:ga998eda017f94fcc7474c0cf6ebec6465"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<h2 class="groupheader">Function Documentation</h2>
<a id="ga998eda017f94fcc7474c0cf6ebec6465"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga998eda017f94fcc7474c0cf6ebec6465">&#9670;&nbsp;</a></span>PWR_DisableSEVOnPend()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PWR_DisableSEVOnPend </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables CORTEX M0+ SEVONPEND bit. </p>
<dl class="section note"><dt>Note</dt><dd>Clears SEVONPEND bit of SCR register. When this bit is set, this causes WFE to wake up when an interrupt moves from inactive to pended.</dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gadf9d3e5ac0108e29ab88766ace65f43a"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gadf9d3e5ac0108e29ab88766ace65f43a">&#9670;&nbsp;</a></span>PWR_DisableSleepOnExit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PWR_DisableSleepOnExit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Disables Sleep-On-Exit feature when returning from Handler mode to Thread mode. </p>
<dl class="section note"><dt>Note</dt><dd>Clears SLEEPONEXIT bit of SCR register. When this bit is set, the processor re-enters SLEEP mode when an interruption handling is over.</dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga2babd7229a89f9df0aa725dbdd8a92b4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga2babd7229a89f9df0aa725dbdd8a92b4">&#9670;&nbsp;</a></span>PWR_EnableSEVOnPend()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PWR_EnableSEVOnPend </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enables CORTEX M0+ SEVONPEND bit. </p>
<dl class="section note"><dt>Note</dt><dd>Sets SEVONPEND bit of SCR register. When this bit is set, this causes WFE to wake up when an interrupt moves from inactive to pended. </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga614e9a0c9e603c88fa1a1cc1503b4267"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga614e9a0c9e603c88fa1a1cc1503b4267">&#9670;&nbsp;</a></span>PWR_EnableSleepOnExit()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PWR_EnableSleepOnExit </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Indicates Sleep-On-Exit when returning from Handler mode to Thread mode. </p>
<dl class="section note"><dt>Note</dt><dd>Set SLEEPONEXIT bit of SCR register. When this bit is set, the processor re-enters SLEEP mode when an interruption handling is over. Setting this bit is useful when the processor is expected to run only on interruptions handling.</dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="gae91b808c1d300d9c9abc2334ffe7ec92"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gae91b808c1d300d9c9abc2334ffe7ec92">&#9670;&nbsp;</a></span>PWR_EnterDEEPSLEEPMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PWR_EnterDEEPSLEEPMode </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enters Deep Sleep mode. </p>
<dl class="section note"><dt>Note</dt><dd>In Deep Sleep mode, all I/O pins keep the same state as in Run mode. </dd></dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="ga13fe554295a807e058ada5ecbc213102"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga13fe554295a807e058ada5ecbc213102">&#9670;&nbsp;</a></span>PWR_EnterSLEEPMode()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void PWR_EnterSLEEPMode </td>
          <td>(</td>
          <td class="paramtype">uint8_t&#160;</td>
          <td class="paramname"><em>SLEEPEntry</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Enters Sleep mode. </p>
<dl class="section note"><dt>Note</dt><dd>In Sleep mode, all I/O pins keep the same state as in Run mode. </dd></dl>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">SLEEPEntry</td><td>Specifies if SLEEP mode is entered with WFI or WFE instruction. When WFI entry is used, tick interrupt have to be disabled if not desired as the interrupt wake up source. This parameter can be one of the following values: <ul>
<li>PWR_SLEEPENTRY_WFI: enter SLEEP mode with WFI instruction </li>
<li>PWR_SLEEPENTRY_WFE: enter SLEEP mode with WFE instruction </li>
</ul>
</td></tr>
  </table>
  </dd>
</dl>
<dl class="retval"><dt>Return values</dt><dd>
  <table class="retval">
    <tr><td class="paramname">None</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by Westberry Technology (ChangZhou) Corp., Ltd. All rights reserved.
</small></address>
</body>
</html>
